import 'dart:collection';

class ClubDetailModel {
  int? clubId;
  String? clubImage;
  String? clubName;
  String? clubAddress;
  String? clubRegionCode;
  String? clubSportsValue;
  String? clubSportsName;
  int? liveness;
  String? clubCreateTime;
  int? clubHomeCourtId;
  String? clubHomeCourtName;
  String? clubProfile;
  int? matchCount;
  int? playerNum;
  String? isJoinClub;

  ClubDetailModel(
      {this.clubId,
      this.clubImage,
      this.clubName,
      this.clubAddress,
      this.clubRegionCode,
      this.clubSportsValue,
      this.clubSportsName,
      this.liveness,
      this.clubCreateTime,
      this.clubHomeCourtId,
      this.clubHomeCourtName,
      this.clubProfile,
      this.matchCount,
      this.playerNum,
      this.isJoinClub});

  ClubDetailModel.fromJson(Map<String, dynamic> json) {
    clubId = json['clubId'];
    clubImage = json['clubImage'];
    clubName = json['clubName'];
    clubAddress = json['clubAddress'];
    clubRegionCode = json['clubRegionCode'];
    clubSportsValue = json['clubSportsValue'];
    clubSportsName = json['clubSportsName'];
    liveness = json['liveness'];
    clubCreateTime = json['clubCreateTime'];
    clubHomeCourtId = json['clubHomeCourtId'];
    clubHomeCourtName = json['clubHomeCourtName'];
    clubProfile = json['clubProfile'];
    matchCount = json['matchCount'];
    playerNum = json['playerNum'];
    isJoinClub = json['isJoinClub'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = HashMap();
    data['clubId'] = clubId;
    data['clubImage'] = clubImage;
    data['clubName'] = clubName;
    data['clubAddress'] = clubAddress;
    data['clubRegionCode'] = clubRegionCode;
    data['clubSportsValue'] = clubSportsValue;
    data['clubSportsName'] = clubSportsName;
    data['liveness'] = liveness;
    data['clubCreateTime'] = clubCreateTime;
    data['clubHomeCourtId'] = clubHomeCourtId;
    data['clubHomeCourtName'] = clubHomeCourtName;
    data['clubProfile'] = clubProfile;
    data['matchCount'] = matchCount;
    data['playerNum'] = playerNum;
    data['isJoinClub'] = isJoinClub;
    return data;
  }
}